package cn.bailin233.web.enums;

/**
 * 枚举类型
 */
public enum CodeEnum {
    /**
     * 成功
     */
    SUCCESS(200, "成功"),

    /**
     * 操做失败
     */
    ERROR(500, "操做失败");

    private int val;
    private String msg;

    CodeEnum(int value, String msg) {
        this.val = value;
        this.msg = msg;
    }

    public int val() {
        return val;
    }

    public String msg() {
        return msg;
    }
}